﻿using System;
using System.Collections.Generic;
using System.Text;

namespace SharpRedisDesktopManager.Core.Models
{
    public class RedisConnectionInfo
    {
        /// <summary>
        /// 标识配置文件的主键
        /// </summary>
        public int Id { get; set; }

        #region Basic
        public string Host { get; set; }
        public string Port { get; set; }
        public string Auth { get; set; }
        public string Name { get; set; }
        public string Separator { get; set; }
        public bool EnableSSHTunnel { get; set; }
        public bool EnableSSL { get; set; }
        public bool IsCluster { get; set; }
        #endregion

        #region SSH Tunnel
        public string SSH_Host { get; set; }
        public string SSH_Port { get; set; }
        public string SSH_UserName { get; set; }
        public string SSH_Password { get; set; }
        public string SSH_PrivateKeyFilePath { get; set; }
        public string SSH_Passphrase { get; set; }
        public int SSH_Timeout { get; set; }
        #endregion

        #region SSL
        public string SSL_PrivateKeyFilePath { get; set; }
        public string SSL_PublicKeyFilePath { get; set; }
        public string SSL_AuthorityFilePath { get; set; }
        #endregion
    }
}
